package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-21
 * Time: 21:28
 */
public class PairOfUidAndBookId {
    private int userId;
    private int bookId;

    public PairOfUidAndBookId(int userId, int bookId) {
        this.userId = userId;
        this.bookId = bookId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String toJson(){
        StringBuilder str=new StringBuilder();
        str.append(userId).append(',');
        str.append(bookId);
        return str.toString();
    }
}
